import re
import zipfile

def main():
	nothing = "90052"
	z = zipfile.ZipFile("channel.zip")
	comments = ""

	i = 0
	while True:
		f = z.open(nothing + ".txt")
		old_nothing = nothing
		comments += z.getinfo(nothing + ".txt").comment
		for line in f:
			print "index: ", i, " ", line
			m = re.search("Next nothing is ([0-9]*)", line)
			if m != None:
				nothing = m.groups()[0]
				print "Next nothing is: ", nothing
				print
		i += 1
		if old_nothing == nothing:
			break
	print comments

if __name__ == '__main__':
	main()
